package com.jm.cloud.springboot.demo.controller;

import org.springframework.core.env.Environment;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.LinkedHashMap;
import java.util.Map;

/**
 * demo
 * <p>
 *     测试
 * <p>
 * <p>
 * author: jiangjianmin
 * <p>
 * create: 2024-08-22 09:42
 **/
@RestController
public class TestController {


    @GetMapping("/appStatus")
    public Map<String, Object> appStatus(@RequestParam(required = false) String key) {
        Map<String, Object> map = new LinkedHashMap<>(4);
        map.put("status", "UP");
        map.put("port", "9000");
        return map;
    }
}
